From: Jonas Dreßler Date: Thu, 23 Jan 2020 22:25:38 +0000 (+0100) Subject: polkitAgent: Remove styleClass argument for caps lock warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~92 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9009b50bd1a857ea63ec13972748bc01529b2538;p=gnome-shell.git polkitAgent: Remove styleClass argument for caps lock warning The caps lock warning now has its own css class that works for this case, too. Remove the custom class parameter and just use the default one. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/952 --- diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 8aea29724..e2b056fe1 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -108,8 +108,8 @@ var AuthenticationDialog = GObject.registerClass({ this._passwordBox.add(this._workSpinner); this._passwordBox.hide(); - this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({ style_class: 'prompt-dialog-caps-lock-warning' }); - content.add_child(this._capsLockWarningLabel); + let capsLockWarning = new ShellEntry.CapsLockWarning(); + content.add_child(capsLockWarning); this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' }); this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;